var num =0
var over = false
t=setInterval(function(){
    num++
    var jdt = document.querySelector('.jdt')
    if(num>=95 && !over) return
    if(jdt){
        jdt.style.width = num+ '%'
    }else{
        var jdt = document.createElement('div')
        jdt.className = 'jdt'
        jdt.style.position = 'fixed'
        jdt.style.top = '0px'
        jdt.style.width = num+ '%'
        jdt.style.height = '2px'
        jdt.style.backgroundColor = '#29d'
        document.body.appendChild(jdt)
        // 右边添圈
        var nprogressRadius = document.createElement('div')
        nprogressRadius.className = 'nprogressRadius'
        document.body.appendChild(nprogressRadius)
    }
    if(num>=100){
        document.body.removeChild(jdt)
        clearInterval(t)
        document.body.removeChild(document.querySelector('.nprogressRadius'))
    }
},10)

window.onload = function() {
    over = true
}